home *** CD-ROM | disk | FTP | other *** search
- /* HPP-Gas by an idea of Toffoli, in CAMRexx by THOR */
-
- MakeAlgorithm:
- if plane=0 then
- PLANEALGORITHM margolus hvphases
- if plane=1 then
- PLANEALGORITHM echo center1
- return
-
- MakePlane:
- if plane=0 then; do
- if center_ then
- SETPLANE off
- else; do
- if (center=opp & cw=ccw & center~=cw) | opp_ then
- do
- if opp_ then; do
- if cw_=ccw_ then
- SETPLANE center
- else; do
- if cw_ then
- SETPLANE ccw
- if ccw_ then
- SETPLANE cw
- end
- end; else; do
- if cw_ | ccw_ then
- SETPLANE center
- else
- SETPLANE cw
- end
- end
- else SETPLANE opp
- end
- end
- return
-
-